import qs from 'qs'    

export default $axios => ({
    getRoom(by, roomId) {
        return $axios.get('/server/room', {
            params: {
                by,
                roomId
            }
        })
    },
    getRoomList(){
        return $axios.get('/server/room',{
            params:{
                by:'all',
            }
        })
    },
    updateRoom(room){
        return $axios.put('/server/room',{
            room  
        })
    },
})